<div class="panel panel-default" ng-controller="ComplaintIssueCtrl">
	<div class="panel-heading">
		投诉项配置
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.code" class="form-control" placeholder="编码">
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.name" class="form-control" placeholder="名称">
				</div>
			</div>
			<div class="form-group col-md-3" ng-show="flag">
				<div class="col-md-11">
					<div class="input-group">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
							<ui-select-match placeholder="所属模块">{{$select.selected.name}}</ui-select-match>
							<ui-select-choices repeat="dps in dplist | propsFilter: {name: $select.search}">
								<span ng-bind-html=" dps.name| highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
						<span class="input-group-btn">
							<button ng-click="dplist.selected = undefined"
								class="btn btn-default">
								<span class="glyphicon glyphicon-trash"></span>
						</button>
						</span>
					</div>
				</div>
			</div>
			<div class="form-group col-md-3">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;">
						<label class="i-checks m-b-none" has-authority="BOOKING_COPLAINT_ISSUE_DEL,RENT_COPLAINT_ISSUE_DEL,BUS_COPLAINT_ISSUE_DEL">
				<input type="checkbox"   ng-model="ckAll"  ng-click="checkAll(ckAll,dataList)" ><i></i>
			  </label>
					</th>
					<th style="width:100px;">编码</th>
					<th style="width:100px;">名称</th>
					<th style="width:100px;">最大分值</th>
					<th style="width:100px;">所属模块</th>
					<th style="width:80px;">
						<div class="row list-icon">
							<a href tooltip="添加投诉项" has-authority="BOOKING_COPLAINT_ISSUE_ADD,RENT_COPLAINT_ISSUE_ADD,BUS_COPLAINT_ISSUE_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
							<a href tooltip="批量删除" has-authority="BOOKING_COPLAINT_ISSUE_DEL,RENT_COPLAINT_ISSUE_DEL,BUS_COPLAINT_ISSUE_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',issue,'deleteAll')" ></i></a>
						</div>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="issue in dataList">
					<td>
						<label class="i-checks m-b-none" has-authority="BOOKING_COPLAINT_ISSUE_DEL,RENT_COPLAINT_ISSUE_DEL,BUS_COPLAINT_ISSUE_DEL">
				<input id="{{issue.ic}}" name="checks" type="checkbox" ng-checked="ckAll"  ng-model="checks"  ng-click="check(issue.id,checks)"  ><i></i>
			  </label></td>
					<td>{{issue.code}}</td>
					<td>{{issue.name}}</td>
					<td>{{issue.maxPoints}}</td>
					<td>{{issue.moduleId | moduleFilter}}</td>
					<td>
						<div class="row list-icon">
							<a href tooltip="修改" has-authority="BOOKING_COPLAINT_ISSUE_UPDATE,RENT_COPLAINT_ISSUE_UPDATE,BUS_COPLAINT_ISSUE_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',issue,'update')" ></i></a>
							<a href tooltip="删除" has-authority="BOOKING_COPLAINT_ISSUE_DEL,RENT_COPLAINT_ISSUE_DEL,BUS_COPLAINT_ISSUE_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',issue,'delete')" ></i></a>
						</div>
					</td>
				</tr>
				<tr ng-show="dataList==''">
					<td colspan="6" style="text-align: center;">暂无投诉项信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>